package com.binary.coder.gift.core.interfaces.Invitation.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author atao
 * @version 1.0.0
 * @ClassName DesignElementReq.java
 * @Description 设计元素请求
 * @createTime 2024年06月21日 16:48:00
 */
@Data
@ApiModel("保存设计元素的请求实体")
public class SaveDesignElementReq {

    @ApiModelProperty(value = "设计元素ID", example = "12345", required = false)
    private Long id;

    @ApiModelProperty(value = "类型代码", example = "TEXT", required = true)
    private String typeCode;

    @ApiModelProperty(value = "内容", example = "设计内容", required = true)
    private String content;

    @ApiModelProperty(value = "文件路径", example = "/images/design.png", required = false)
    private String filePath;

    @ApiModelProperty(value = "位置X坐标", example = "100.5", required = true)
    private BigDecimal positionX;

    @ApiModelProperty(value = "位置Y坐标", example = "200.5", required = true)
    private BigDecimal positionY;

    @ApiModelProperty(value = "宽度", example = "300.0", required = true)
    private BigDecimal width;

    @ApiModelProperty(value = "高度", example = "400.0", required = true)
    private BigDecimal height;
}
